package com.zqxq.lottery.mapper.order;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zqxq.lottery.entity.bo.order.UserOrderBetBO;
import com.zqxq.lottery.entity.po.order.UserOrderBetPO;
import com.zqxq.lottery.entity.vo.order.UserOrderBetVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @Description ：
 * @Author ： 解风
 * @Date ： 2018/03/13 14:39
 */
@Component(value = "userOrderBetMapper")
public interface UserOrderBetMapper extends BaseMapper<UserOrderBetPO> {

    List<UserOrderBetVO> queryList(UserOrderBetBO search);

    void updateOrderStatus(@Param("lotteryId") Long lotteryId,@Param("orderId") Long orderId,@Param("oldStatus")  Integer oldStatus,@Param("newStatus")  Integer newStatus);

    void insertOrderBet(UserOrderBetPO bet);

    List<UserOrderBetPO> selectOrderBetList(@Param("orderId") Long orderId,@Param("lotteryId") Long lotteryId);

    void updateOrderBet(UserOrderBetPO bet);

    void updateOdds(UserOrderBetPO po);

    List<Map<String,String>> getPushOrderProgramme(String user_id);
}
